/* CO2 levels for controlling LEDs -------------------------------------------*/
#define GREEN_LEVEL			600
#define YELLOW_GREEN_LEVEL	1000
#define YELLOW_LEVEL		1400
#define RED_YELLOW_LEVEL	1800
#define THRESHOLD			2000

/* Time units for scheduler --------------------------------------------------*/
#define IMMEDIATELY			0
#define ONE_SECOND			1000
#define FIVE_SECONDS		5000

/* EEPROM constants ----------------------------------------------------------*/
#define DATALOGGER_START	0x1000	// Start address for data logging
#define DATALOGGER_END		0x1FFF	// End address for data logging

#define OFFSET_START		0x000	// Start value for EEPROM address offset
#define OFFSET_END			0xFFD	// End value for EEPROM address offset
#define STRUCT_SIZE			4

#define FLAG_END_STRUCT		0
#define FLAG_LAST_STRUCT	1

#define TABLE_SIZE			5		// Size of array holding temperature / CO2
#define AVERAGE_SIZE		8		// Number of values to calculate average of
#define TABLE_MEDIAN		2		// Array index for median
